package com.xmut.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmut.mall.order.myenum.OrderComplaintStatusEnum;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.entity.OrderItemEntity;
import com.xmut.mall.order.utils.RespBean;

import java.util.List;
import java.util.Map;

public interface OrderItemService extends IService<OrderItemEntity> {

    /**
     * 创建订单项
     * @param entity
     * @return
     */
    RespBean createOrderItem(List<OrderItemEntity> entity);

    /**
     *更新订单投诉状态
     * @param itemId
     * @param skuId
     * @param orderComplaintId
     * @param applying
     */
    void updateOrderItemsComplainStatus(Long itemId, Long skuId, Long orderComplaintId, OrderComplaintStatusEnum applying);
}

